﻿@using CoreData
@model Order
<ul>
    @using (Html.BeginForm("BookTour", "Order", FormMethod.Post, new { onsubmit = "return ValidateBookTour()" }))
    {
        <li class="row-cont">
            <div id="error">
            </div>
        </li>
        @Html.HiddenFor(c => c.TourID);
        <li class="row-cont">
            <label class="lbl">
                Họ tên</label>
            @Html.TextBoxFor(c => c.Name, new { @class = "txt" })
        </li>
        <li class="row-cont">
            <div class="row-col">
                <label class="lbl">
                    Số điện thoại</label>
                @Html.TextBoxFor(c => c.Phone, new { @class = "txt" })
            </div>
            <div class="row-col right">
                <label class="lbl">
                    Email</label>
                @Html.TextBoxFor(c => c.Email, new { @class = "txt" })
            </div>
            <div class="clearfix">
            </div>
        </li>
        <li class="row-cont">
            <label class="lbl">
                Số người</label>
            @Html.TextBoxFor(c => c.TrevelerAmount, new { @class = "txt" })
        </li>
        <li class="row-cont">
            <div class="row-col">
                @Html.RadioButtonFor(c => c.OrderTourTypeID, "0", new { @class = "rdb" })
                <label class="lbl bgnone" for="rdbtourpublic">
                    Tour ghép đoàn</label>
            </div>
            <div class="row-col right">
                @Html.RadioButtonFor(c => c.OrderTourTypeID, "1", new { @class = "rdb" })
                <label class="lbl bgnone" for="rdbsingletour">
                    Tour riêng</label>
            </div>
            <div class="clearfix">
            </div>
        </li>
        <li class="row-cont">
            <div class="row-col">
                <label class="lbl">
                    Ngày khởi hành</label>
                @Html.TextBoxFor(c => c.StartDate, new { @class = "txt tourstartdate" })
                @* <input type="text" class="txt tourstartdate" />*@
            </div>
            <div class="row-col right">
                <label class="lbl">
                    Ngày trả tour</label>
                @Html.TextBoxFor(c => c.DateCompleted, new { @class = "txt tourenddate" })
                @* <input type="text" class="txt tourenddate" />*@
            </div>
            <div class="clearfix">
            </div>
        </li>
        <li class="row-cont">
            <label class="lbl">
                Yêu cầu khác</label>
            @Html.TextAreaFor(c => c.Note, new { @class = "txt" })
        </li>
        <li class="row-cont">
            <input type="submit" class="btn" value="Đặt Tour" />
        </li>
    }
</ul>
